package com.adinnet.admin.product.service;

import com.adinnet.admin.product.model.Product;
import com.adinnet.admin.product.model.form.ProductForm;
import com.adinnet.admin.product.model.vo.ProductReq;
import com.adinnet.admin.product.model.vo.ProductResp;
import com.adinnet.core.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author liukp
 * @since 2020-07-02
 */
public interface ProductService extends IService<Product> {

    PageResult<ProductResp> list(ProductReq productReq);

    String addProduct(ProductForm productForm, HttpServletRequest request);

    String updateProduct(ProductForm productForm, HttpServletRequest request);

    String solOutProduct(Integer id,Integer status);

    String delProduct(Integer id, HttpServletRequest request);
}
